<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta name="google-site-verification" content="oBmdY1u1Gdn7ULgxqjyi4m9SDQEz4roPdVtv9nElKL8" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>
        {if isset($page_title)}
            {$page_title}
        {else}
            MMobile - Phoneshop online
        {/if}
    </title>

    <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-31352910-1']);
        _gaq.push(['_trackPageview']);

        (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();

    </script>

</head>
<body>
{css style/shared-style.css}
{css style/html-form.css}
{css style/home.css}
{css scripts/plugin/jquery.jmodal.css}
{css style/py-shop.css}
{js scripts/jquery.min.js}
{js scripts/py.js}
{js scripts/py-form.js}
{js scripts/py-shop.js}
{js scripts/plugin/jquery.jmodal.js}
{js scripts/plugin/jquery.metadata.js}

<!-- go top image -->
<a href="#" id="py-go-top"><img src="images/go-top.png" alt="go top" /></a>

<div id="wrap">
<div id="head">
    <div id="top-head">
        <p class="greeting">
            Chào mừng quí khách
            {if UserController::isLogged()}
                <a class="slink top-user-link {out UserController::getLoggedUser('user_type')}" href="{out UserController::getLoggedUserUrl()}">
                    {out UserController::getLoggedUserInfo('u_ten')}
                </a>
                <a href="dang-xuat" class="slink">Đăng xuất</a>
            {else}
                (<a href="dang-nhap" class="slink">Đăng nhập</a> | <a href="quen-mat-khau" class="slink">Quên mật khẩu</a>)
            {/if}

        </p>

        <p class="top-info">
            <a href="khanghang/giohang">Giỏ hàng:</a>
            <span id="shopcartCounter">2</span> sản phẩm

            <a class="acc-info-link" href="{out UserController::getLoggedUserUrl()}">Tài khoản của bạn</a>
        </p>
    </div>
    <!-- /#top-head -->

    <div id="head-content">
        <div id="logo">
            <a href="/">
                <img src="images/logo.jpg" alt="MMobile logo">
            </a>
        </div>
        <!-- /#logo -->

        <div id="search-form-block">
            <ul id="top-nav" class="nav">
                <li><a href="/">Trang chủ</a></li>
                <li><a href="/khuyenmai/view1">Khuyến mãi</a></li>
                <li><a href="lien-he">Liên hệ</a></li>
            </ul>
            <form action="/timkiem/timkiemchung" class="form-inline" method="get" id="general-search-form">
                <label for="key" class="control-label">Tìm kiếm</label>
                <input type="text" name="key" id="key">
                <button type="submit" name="submit">Tìm</button>
            </form>
        </div>
    </div>
</div><!-- /#head -->

{include mainnav}

{include slideshow}

<div id="content">
<div id="main-content">
   {$sub_template}
</div><!-- /#main-content -->

<div id="sidebar">
    {if !isset($show_shop) || (isset($show_shop) && $show_shop)}
    <div id="shopcart" class="sidebar-group">
    {include shopcart}
    </div>
    {/if}

    {if !isset($show_hangsanxuat) || (isset($show_hangsanxuat) && $show_hangsanxuat)}
    <div class="sidebar-group">
        <h2>Hãng sản xuất</h2>
        <ul id="manuf" class="nav">
            {foreach $list_hangsx as $item}
                <li><a href="hang-san-xuat/{$item.hsx_id}">{$item.hsx_ten}</a></li>
            {/foreach}
        </ul>
    </div><!-- /sidebar-group hãng sản xuất -->
    {/if}

    {include searchform}



</div><!-- /#sidebar -->

<div class="clear"></div>
</div><!-- /#content -->

<div id="footer">
    <ul class="col1">
        <li><a href="lien-he">Lien he</a></li>
        <li><a href="cuahang/sodo">So do</a></li>
        <li><a href="dieu-khoan">Dieu khoan su dung</a></li>
        <li><a href="cuahang/cachthucmuahang">Cach thuc mua hang</a></li>
    </ul>

    <ul class="col2">
        <li><a href="dien-thoai-moi">San pham moi</a></li>
        <li><a href="ban-chay">San pham ban chay</a></li>
        <li><a href="dienthoai/dienthoaigiamgia">San pham giam gia</a></li>
        <li><a href="cuahang/thongtincuahang">Thong tin cua hang</a></li>
    </ul>

    <ul class="col3">
        <li><a href="">Tai khoan cua ban</a></li>
        <li><a href="">Thong tin ca nhan</a></li>
        <li><a href="">Dia chi giao hang</a></li>
        <li><a href="">Giam gia</a></li>
        <li><a href="">Lich su mua hang</a></li>
    </ul>

    <div class="col4">
        <h2>MMobile</h2>

        <h3>Ninh Kieu, Can Tho</h3>

        <h3>Phone: 0979 575 658</h3>
    </div>

    <div class="clear"></div>
    <div id="copyright">
        <h3>Thiết kế bởi <strong>HG Group</strong></h3>
        <span>Liên hệ <a href="mailto:pyttop@gmail.com">Pyttop@gmail.com</a></span>
        <span>Mọi quyền được bảo lưu</span>
    </div>
</div><!-- /#footer -->
</div>

<input type="hidden" id="root" value="{$root}">
</body>
</html>
